package at.fhv.framework.pipe;

import java.util.ArrayList;
import java.util.List;

import at.fhv.framework.interfaces.Push;

/**
 * @author Michael
 * @version 1.0
 * @created 16-Nov-2011 10:05:24
 */
public abstract class PushPipe<INOUT> implements Pipe<INOUT>, Push<INOUT> {

	protected List<Push<INOUT>> _target;

	public PushPipe(Push<INOUT> target) {
		_target = new ArrayList<Push<INOUT>>();
		addTarget(target);
	}

	public PushPipe(List<Push<INOUT>> targets) {
		_target = targets;
	}

	public void addTarget(Push<INOUT> target) {
		_target.add(target);
	}

	/**
	 * 
	 * @param data
	 */
	@Override
	public void write(INOUT data) {

	}

}